package com.service.loan.feignService;

import com.client.model.pojo.bank.ArBankcard;
import com.client.model.vo.common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @Author : RulerWood
 * @Data : 2024/4/6 - 17:49
 */
@FeignClient(path = "/airui/api/creditcardFeign", value = "service-bank")
public interface BankCardFeignService {

    @GetMapping("/{cid}")
    public Result<ArBankcard> getCreditCardById(@PathVariable("cid") Long cid);

    @PostMapping("/")
    public Result savePrice(@RequestBody ArBankcard arBankcard);

    @PostMapping("/pwdIsRight")
    public Result<ArBankcard> pwdIsRight(String password);

    @GetMapping("/findCreditCardByCardNum")
    public ArBankcard getCreditCardByCardNum(@RequestParam(name = "cardNum") String cardNum, @RequestParam("password") String password);
}
